package com.adnaan.boot;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

/**
 * 应用启动类
 */
@Slf4j
@SpringBootApplication
@ComponentScan(basePackages = {"com.adnaan"})
@EnableConfigurationProperties
public class AdnaanApplication {

    public static void main(String[] args) {
        // 启动应用
        SpringApplication application = new SpringApplication(AdnaanApplication.class);
        application.run(args);

        // 启动成功后显示LOGO
        log.info("\n" +
                "  ___       _                          \n" +
                " / _ \\     | |                         \n" +
                "/ /_\\ \\  __| |_ __   __ _  __ _ _ __   \n" +
                "|  _  | / _` | '_ \\ / _` |/ _` | '_ \\  \n" +
                "| | | || (_| | | | | (_| | (_| | | | | \n" +
                "\\_| |_/ \\__,_|_| |_|\\__,_|\\__,_|_| |_| \n" +
                "                                       \n" +
                "(♥◠‿◠)ﾉﾞ  多模块脚手架启动成功  ლ(´ڡ`ლ)ﾞ\n");
    }
} 